import { Mode } from '@/core/interfaces/common'

export const activityListByGet = () => ({
  url: '/api/v1/activity/list',
  method: 'get'
})

export const activityUpdateByPost = (mode: Mode) => ({
  url: `/api/v1/activity/${mode === Mode.create ? 'add' : 'update'}`,
  method: 'post'
})

export const activityByGet = () => ({
  url: '/api/v1/activity',
  method: 'get'
})

export const activityRemoveByGet = () => ({
  url: '/api/v1/activity/del',
  method: 'get'
})

export const activityOnlineByGet = () => ({
  url: '/api/v1/activity/online',
  method: 'get'
})

export const activityOfflineByGet = () => ({
  url: '/api/v1/activity/offline',
  method: 'get'
})
